import request from '@/utils/request'

// 查询宠物附件列表
export function listPetAnnex(query) {
  return request({
    url: '/digital/petAnnex/list',
    method: 'get',
    params: query
  })
}

// 查询宠物附件详细
export function petAnnexByPet(id) {
  return request({
    url: '/digital/petAnnex/getPet/' + id,
    method: 'get'
  })
}
// 查询宠物附件详细
export function getPetAnnex(id) {
  return request({
    url: '/digital/petAnnex/' + id,
    method: 'get'
  })
}

// 新增宠物附件
export function addPetAnnex(data) {
  return request({
    url: '/digital/petAnnex',
    method: 'post',
    data: data
  })
}

// 修改宠物附件
export function updatePetAnnex(data) {
  return request({
    url: '/digital/petAnnex',
    method: 'put',
    data: data
  })
}

// 删除宠物附件
export function delPetAnnex(id) {
  return request({
    url: '/digital/petAnnex/' + id,
    method: 'delete'
  })
}

// 导出宠物附件
export function exportPetAnnex(query) {
  return request({
    url: '/digital/petAnnex/export',
    method: 'get',
    params: query
  })
}
